package com.gc.server.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 费用申请实体
 * 表名 cost_apply
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Oct 21 17:34:54 CST 2020
 */
@Setter
@Getter
public class CostApplyEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //用户ID
    private Long userId;
        //金额
    private BigDecimal amount;
        //理由
    private String remark;
        //卡号信息
    private String bankInfo;
        //申请时间
    private Date time;
        //起止时间
    Date[] times;

    Date[] payTimes;
        //IMG-图片
    private String img;
        //ENUM-类型:"APPLY-申请","COST-报销"
    private Integer type;
        //ENUM-状态:"WAIT-待审核","PASS-通过","REFUSE-拒绝"
    private Integer status;
    //审核人ID
    private Long adminId;
    //管理员名字
    private String adminName;

    private String info;

    //出差ID
    private Long busId;

    private String title;

    private String unit;

    private Date payTime;

    private String payWay;

    //交通费
    private BigDecimal carMoney;

    //住宿费
    private BigDecimal houseMoney;

    //其他费用
    private BigDecimal otherMoney;

    //补贴费用
    private BigDecimal moreMoney;
    
    public CostApplyEntity(){

    }

    public CostApplyEntity(Long userId, BigDecimal amount, String info, String bankInfo, Date time, Integer type, Integer status,String img,String title,String unit,String payWay,Date payTime,Long busId,BigDecimal carMoney,BigDecimal houseMoney,BigDecimal otherMoney,BigDecimal moreMoney) {
        this.userId = userId;
        this.amount = amount;
        this.info = info;
        this.bankInfo = bankInfo;
        this.time = time;
        this.type = type;
        this.status = status;
        this.img = img;
        this.title = title;
        this.unit  = unit;
        this.payTime = payTime;
        this.payWay = payWay;
        this.busId = busId;
        this.carMoney = carMoney;
        this.houseMoney = houseMoney;
        this.otherMoney = otherMoney;
        this.moreMoney = moreMoney;
    }
}
